package Java练习.面向对象综合练习.多态.综合练习;

public class Dog extends Animal{
    //构造空参


    public Dog() {
    }

    public Dog(int age, String color) {
        super(age, color);
    }

    //重构eat


    @Override
    public void eat(String someThing) {
        System.out.println(getAge()+"岁的"+getColor()+"颜色的狗两只前腿死死的保住"+someThing+"猛吃 ");
    }

    //定义狗看家的行为
    public void lookHome(){
        System.out.println("看家");
    }
}
